package org.wzh.spring.di.demod;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;
import org.wzh.spring.di.demo1.CompactDisc;
import org.wzh.spring.di.demo4.CDPlayer;

/**
 * 在JavaConfig中导入JavaConfig
 * @author Pear
 *
 */
@Configuration
@Import(CDConfig.class)
public class CDPlayerConfig {
	
	@Bean
	public CDPlayer cdPlayer(CompactDisc compactDisc) {
		return new CDPlayer(compactDisc);
	}

}
